Change recommended replacement for gtk_show_uri()
authorMichael Catanzaro <mcatanzaro@redhat.com>
Tue, 13 Jun 2023 18:00:15 +0000 (13:00 -0500)
committerMichael Catanzaro <mcatanzaro@redhat.com>
Tue, 13 Jun 2023 18:03:04 +0000 (13:03 -0500)
commitbef1c6925493092ebe74a1edc67aa2b7ef896694
tree0116c2ea0695f9c77fa80227b0822ab58bd1b171
parentf381cdef5b9acc96dac63e8a0ca50ee7d0b0f72a
Change recommended replacement for gtk_show_uri()

Problem is GtkFileLauncher is unable to handle all the types of URIs
that are supported by gtk_show_uri(), e.g. help: URIs. GtkUriLauncher
avoids this problem.

Another problem is that GtkUriLauncher is just generally a better choice
for launching URIs, since you don't have to create a GFile in order to
use it. Porting code is slightly simpler.

The documentation still mentions both GtkFileLauncher and GtkUriLauncher
as options, but most people will use whatever the compiler recommends
when it prints the deprecation warning.
gtk/deprecated/gtkshow.h